import React, { Component } from "react";
import { HashRouter, Route, Switch } from "react-router-dom";
import Admin from "./page/admin/admin";
import Login from "./page/login/login";
class App extends Component {
  constructor(props) {
    super(props);
    this.state = {};
  }
  render() {
    return (
      <HashRouter>
        <Switch>
          <Route path="/login" component={Login} />
          <Route path="/" component={Admin} />
        </Switch>
      </HashRouter>
    );
  }
}

export default App;
